package com.wzdigit.wms.basic.enums.basic;

import com.wzdigit.wms.basic.enums.BaseEnum;

/**
 * 批次属性和封库或解封单不对应的字段名
 * @author yangdongjie
 * @BasicStatusEnum.java
 * @2021年2月2日下午2:33:44
 */
public enum SealLotAttrDtlEnum implements BaseEnum {

	SO_ITEM("SO_ITEM", "SO_LINE_NO", "销售订单行号");
	
	/**
	 * 枚举值
	 */
	public String code;

	/**
	 * 枚举名称
	 */
	public String enumName;

	/**
	 * 枚举实体类属性描述
	 */
	public String description;
	
	SealLotAttrDtlEnum(String code, String enumName, String description) {
		this.code = code;
		this.enumName = enumName;
		this.description = description;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getEnumName() {
		return enumName;
	}

	public void setEnumName(String enumName) {
		this.enumName = enumName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public static SealLotAttrDtlEnum getEnumByCode(String enumCode) {
		SealLotAttrDtlEnum[] values = SealLotAttrDtlEnum.values();
		SealLotAttrDtlEnum samplingEnum = null;

		for (SealLotAttrDtlEnum value : values) {
			if (value.getCode().equals(enumCode)) {
				samplingEnum = value;
			}
		}
		return samplingEnum;
	}
}
